import request from '@/utils/request'

// 查询推荐美食列表
export function listDelicacies(query) {
  return request({
    url: '/kiku/delicacies/list',
    method: 'get',
    params: query
  })
}

// 查询推荐美食详细
export function getDelicacies(id) {
  return request({
    url: '/kiku/delicacies/' + id,
    method: 'get'
  })
}

// 新增推荐美食
export function addDelicacies(data) {
  return request({
    url: '/kiku/delicacies',
    method: 'post',
    data: data
  })
}

// 修改推荐美食
export function updateDelicacies(data) {
  return request({
    url: '/kiku/delicacies',
    method: 'put',
    data: data
  })
}

// 删除推荐美食
export function delDelicacies(id) {
  return request({
    url: '/kiku/delicacies/' + id,
    method: 'delete'
  })
}
